package xyz.jcat.seata.example.storage.dubbo;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import xyz.jcat.seata.example.api.IStorageService;
import xyz.jcat.seata.example.api.dto.StorageDecrDto;
import xyz.jcat.seata.example.storage.service.IItemStorageService;

@DubboService
public class StorageService implements IStorageService {

    @Autowired
    private IItemStorageService itemStorageService;

    @Override
    public void decr(StorageDecrDto storageDecrDto) {
        itemStorageService.decr(storageDecrDto);
    }
}
